// 数据源类型下拉框
<template>
    <el-select v-model="currentValue" placeholder="请选择性别" multiple collapse-tags clearable>
        <el-option v-for="item in list" :key="item.value" :value="item.value" :label="item.label"> </el-option>
    </el-select>
</template>

<script>
export default {
    name: 'UserTypeSelect',
    created() {
        // this.getDataSourceType()
    },
    watch: {
        currentValue: function (val) {
            if (val.length === 0) val = ''
            this.$emit('input', val)
        }
    },
    data() {
        return {
            loading: false,
            currentValue: '',
            list: [
                {
                    value:1,
                    label:'男'
                },
                {
                    value:2,
                    label:'女'
                }
            ]
        }
    },
    methods: {
    }
}
</script>
